<?php
/**
 *  @author liuyang
 *  @name  ActivityPrize.php
 *  @date Created on 2016-1-7
 */
namespace haibao\cms\model\data\activity;

Class ActivityPrize extends \haibao\cms\model\data\Base{
    /**
     * 状态，默认1，1正常0删除
     */
    const STATUS_DELETE = 0;
    const STATUS_ENABLE = 1;
    
    /**
     * 活动ID
     */
    
    public $ActivityId;
    
    /**
     * 奖品图片ID
     */
    
    public $ImageId;
    
    /**
     * 奖品介绍
     */
    
    public $Desc;
    
    /**
     * 奖品等级
     */
    
    public $Level;
    
    /**
     * 奖品数量
     */
    public $Num;
    
    /**
     * 剩余奖品数量
     */
    
    public $RestNum = 0;
    
    /**
     * 状态，默认1，1正常0删除
     */
    
    public $Status = 1;
    
    /**
     * 创建人
     */
    public $CreateBy;
    
    /**
     * 创建日期
     */
    public $CreateTime;
    
	public function __construct(){
		parent::__construct();
		$this->intField('ActivityId', 'ActivityId',true);
		$this->intField('ImageId', 'ImageId',true);
		$this->stringField('Desc', 'Desc');
		$this->intField('Num', 'Num',true);
		$this->intField('Level', 'Level',true);
		$this->intField('RestNum', 'RestNum',true);
		$this->intField('Status', 'Status',true);
		$this->intField('CreateBy', 'CreateBy',true);
		$this->dateField('CreateTime', 'CreateTime',true);
		$this->setTableName('ActivityPrize');
	}
}